﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InfoMap.Core.UI
{
    /// <summary>
    /// Script tag class
    /// </summary>
    public class ScriptTag
    {        
        /// <summary>
        /// Javascript content
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// Html script tag
        /// </summary>
        /// <returns>Script tag containing the code</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat(@"<script type='text/javascript'>{0}</script>", Content);
            return sb.ToString();
        }
    }
}
